The Week View component > FWeekView.setMonthArray() |
FWeekView.setMonthArray()
Availability
Flash Player 6.
Usage
myWeekView_wkv.setMonthArray (months)
Parameters
months An array of Strings that contain the names
of the months of the year.
Returns
Nothing
Description
Takes an array of Strings that contain the names of the months of the year. The first 12 items of the array will be used to display the names of the months of the year within the component.
Example
The week_getSelectedDate.fla example file contains an example of using this method.
The following code specifies how month names will be displayed within the component.
var days_fr = ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"];
var months_fr = ["jan", "fev", "mar", "avr", "mai", "jui", "jui",
"aou", "sep", "oct", "nov", "dec"];
myWeekView_wkv.setDayArray(days_fr);
myWeekView_wkv.setMonthArray(months_fr);
function onDayChange()
{
trace("Selected Date : " + myWeekView_wkv.getValue());
}
myWeekView_wkv.setChangeHandler("onDayChange");
See also